﻿@model WebSite.Models.LoginVM

<h2>Вход</h2>
@using (Html.BeginForm("Login", "User", FormMethod.Post, new { @class = "loginform" }))
{
    @Html.HiddenFor(m=>m.ReturnUrl)
    <fieldset>
        <legend>Вход</legend>
        <div class="control-group">
            <label class="control-label" for="Email">Email</label>
            <div class="controls">
                @Html.TextBoxFor(m=>m.Email, new { @class = "input-xlarge", autocomplete = "off" })
                <p class="help-block">Введите Email</p>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="Password">Пароль</label>
            <div class="controls">
                @Html.PasswordFor(m=>m.Password,new {@class="input-xlarge", autocomplete = "off" })
                @Html.ValidationMessageFor(m=>m.Password)
            </div>
        </div>
        <div class="form-actions">
            <button type="submit" class="btn btn-primary">Войти</button>
        </div>
    </fieldset>
}